import http from '@/utils/http.js'
export default {
  // 我的提问列表
  Answerlist(params) {
    return http({
      method: 'get',
      url: `/qfa/web/getUserQfaList`,
      params
    })
  },
  //我的围观列表
  Answercorlist(params) {
    return http({
      method: 'get',
      url: `/qfa/web/getAroundQfaList`,
      params
    })
  },
  //我的收藏列表
  Answercollelist(params) {
    return http({
      method: 'get',
      url: `/qfa/web/getCollectQfaList`,
      params
    })
  },
  // 我的提问详情
  Answerdateil(params) {
    return http({
      method: 'get',
      url: `/qfa/web/getQuestion`,
      params
    })
  },
  // 我的提问详情赞赏
  Answerzans(params) {
    return http({
      method: 'post',
      url: `/qfa/web/addReward`,
      params
    })
  },

  //评星
  AnswerStar(params) {
    return http({
      method: 'PUT',
      url: `/qfa/web/updateStar`,
      params
    })
  },

  // 向别人提问
  Answerputquest(data) {
    return http({
      method: 'POST',
      url: `/qfa/web/addQuestion`,
      data
    })
  },

  // 发布市场
  Answermarkelist(params) {
    return http({
      method: 'GET',
      url: `/spcolumn/web/dict/getConstants/market`,
      params
    })
  },

  //问答列表
  Answertypelist(params) {
    return http({
      method: 'GET',
      url: `/spcolumn/web/dict/getConstants/article`,
      params
    })
  },

  //查询个人用户质料
  Personalmaterials(params) {
    return http({
      method: 'GET',
      url: `/user/user/web/byUserId`,
      params
    })
  },

  //查询专栏打赏设置金额
  Getsetamount(params) {
    return http({
      method: 'GET',
      url: `/qfa/web/getRewardSet`,
      params
    })
  },

  //查询专栏信息
  Getspcolumnts(params) {
    return http({
      method: 'GET',
      url: `/spcolumn/web/spcolumn/bySpcolumnId`,
      params
    })
  },
  //收藏
  Collection(data) {
    return http({
      method: 'POST',
      url: `/qfa/web/addCollect`,
      data
    })
  },
  //取消收藏
  Cancollection(params) {
    return http({
      method: 'DELETE',
      url: `/qfa/web/cancelCollect`,
      params
    })
  },


  Wathcs(data) {
    return http({
      method: 'post',
      url: `/qfa/web/addAround`,
      data
    })
  },

  // 查询悬赏问题答案列表
  getAnswerList(params) {
    return http({
      method: 'GET',
      url: `/qfa/web/question/answerList`,
      params
    })
  },




}